<?php
$this->breadcrumbs=array(
	'Kinds'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Kind', 'url'=>array('index')),
	array('label'=>'Create Kind', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('kind-grid', {
		data: $(this).serialize()
	});
	return false;
});
");

$this->pageHeader = 'Manage Kind';
?>

<?php $this->widget('bootstrap.widgets.BootGridView', array(
	'id'=>'kind-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
			'name'=>'id',
			'value'=>'$data->id',
			'htmlOptions'=>array(
			'style'=>'width:50px;;text-align:left;',
			),
		),
		array(
			'name'=>'kind_name',
			'type'=>'raw',
			'value'=>'CHtml::link($data->kind_name, array("/kind/view/","id"=>$data->id))'
		),
		array(
			'class'=>'bootstrap.widgets.BootButtonColumn',
			'htmlOptions'=>array(
			'style'=>'width:100px;;text-align:right;',
			),
		),
	),
)); ?>
